package com.graduation.springbootinit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.springbootinit.model.entity.ShopPart.ProductImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductImageMapper extends BaseMapper<ProductImage> {
    
    @Select("SELECT * FROM shop_part_product_image WHERE product_id = #{productId}")
    List<ProductImage> selectByProductId(@Param("productId") Long productId);
} 